package cn.wolfcode.rbac.service;

import cn.wolfcode.rbac.domain.Employee;
import cn.wolfcode.rbac.domain.Role;
import cn.wolfcode.rbac.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IEmployeeService {
    void save(Employee employee);

    void delete(Long id);

    void update(Employee employee);

    Employee get(Long id);

    List<Employee> listAll();

    PageInfo<Employee> query(QueryObject qo);

    void deleteByEmployeeId(Long id);

    void insertRelation(Long roleId, Long EmployeeId);

    List<Role> queryByEmployeeId(Long id);


    Employee login(String username, String password);
}
